/**
 * @Author: lusx
 * @Date:   11-03-2019 07:06:37
 * @Project: Govern督办
 * @Last modified by:   lusx
 * @Last modified time: 15-03-2019 04:27:22
 */

import { observable, action } from "mobx";
import { Tools } from "weaver-mobile";
const getLabel = Tools.getLabel;
const Data = {
  shareCondition: [
    {
      colSpan: 2,
      conditionType: "SELECT",
      domkey: ["sharetype"],
      fieldcol: 18,
      isQuickSearch: false,
      label: getLabel(21956, "对象类型"),
      labelcol: 6,
      options: [
        {
          key: "1",
          selected: true,
          showname: getLabel(179, "人力资源")
        },
        {
          key: "2",
          selected: false,
          showname: getLabel(124, "部门")
        },
        {
          key: "3",
          selected: false,
          showname: getLabel(141, "分部")
        },
        {
          key: "4",
          selected: false,
          showname: getLabel(122, "角色")
        },
        {
          key: "5",
          selected: false,
          showname: getLabel(1340, "所有人")
        },
        {
          key: "6",
          selected: false,
          showname: getLabel(6086, "岗位")
        }
      ],
      viewAttr: 2
    },
    {
      "1": [
          {
            browserConditionParam: {
              completeParams: {},
              conditionDataParams: {},
              dataParams: {},
              destDataParams: {},
              hasAddBtn: false,
              hasAdvanceSerach: true,
              idSeparator: ",",
              isAutoComplete: 1,
              isDetail: 0,
              isMultCheckbox: false,
              isSingle: false,
              pageSize: 10,
              quickSearchName: "",
              type: "17",
              viewAttr: 3,
              rules:'required',
              title: getLabel(106, "对象")
            },
            colSpan: 2,
            conditionType: "BROWSER",
            domkey: ["relatedid"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(106, "对象"),
            labelcol: 6,
            viewAttr: 3,
            rules:'required',
            title: getLabel(106, "对象")
          },
          {
            colSpan: 2,
            conditionType: "SELECT",
            domkey: ["opttype"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(385, "权限"),
            labelcol: 6,
            options: [
              {
                key: "1",
                selected: true,
                showname: getLabel(33564, "查看")
              },
              {
                key: "2",
                selected: false,
                showname: getLabel(119, "共享")
              }
            ],
            viewAttr: 2
          }
      ],
      "2": [
          {
            browserConditionParam: {
              completeParams: {},
              conditionDataParams: {},
              dataParams: {},
              destDataParams: {},
              hasAddBtn: false,
              hasAdvanceSerach: true,
              idSeparator: ",",
              isAutoComplete: 1,
              isDetail: 0,
              isMultCheckbox: false,
              isSingle: false,
              pageSize: 10,
              quickSearchName: "",
              type: "4",
              viewAttr: 3,
              rules:'required',
              tabs:[{isSearch: false, key: "2", name: "组织结构", selected: false, showOrder: 0},{dataParams: {list: "1"}, isSearch: true, key: "1", name: "按列表", selected: false, showOrder: 0}],
              title: getLabel(106, "对象")
            },
            colSpan: 2,
            conditionType: "BROWSER",
            domkey: ["relatedid"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(106, "对象"),
            labelcol: 6,
            value: 3,
            viewAttr: 3,
            rules:'required',
            title: getLabel(106, "对象")
          },
          {
            colSpan: 2,
            conditionType: "INPUT_INTERVAL",
            domkey: ["seclevel", "seclevel2"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(683, "安全级别"),
            labelcol: 6,
            value: [0, ],
            viewAttr: 3,
            rules:'required'
          },
          {
            colSpan: 2,
            conditionType: "SELECT",
            domkey: ["opttype"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(385, "权限"),
            labelcol: 6,
            options: [
              {
                key: "1",
                selected: true,
                showname: getLabel(33564, "查看")
              },
              {
                key: "2",
                selected: false,
                showname: getLabel(119, "共享")
              }
            ],
            viewAttr: 2
          }
      ],
      "3": [
          {
            browserConditionParam: {
              completeParams: {},
              conditionDataParams: {},
              dataParams: {},
              destDataParams: {},
              hasAddBtn: false,
              hasAdvanceSerach: true,
              idSeparator: ",",
              isAutoComplete: 1,
              isDetail: 0,
              isMultCheckbox: false,
              isSingle: false,
              pageSize: 10,
              type: "194",
              viewAttr: 3,
              rules:'required',
              tabs:[{isSearch: false, key: "2", name: "组织结构", selected: false, showOrder: 0},{dataParams: {list: "1"}, isSearch: true, key: "1", name: "按列表", selected: false, showOrder: 0}],
              title: getLabel(106, "对象")
            },
            colSpan: 2,
            conditionType: "BROWSER",
            domkey: ["relatedid"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(106, "对象"),
            labelcol: 6,
            viewAttr: 3,
            rules:'required',
            title: getLabel(106, "对象")
          },
          {
            colSpan: 2,
            conditionType: "INPUT_INTERVAL",
            domkey: ["seclevel", "seclevel2"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(683, "安全级别"),
            labelcol: 6,
            value: [0, ],
            viewAttr: 3,
            rules:'required'
          },
          {
            colSpan: 2,
            conditionType: "SELECT",
            domkey: ["opttype"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(385, "权限"),
            labelcol: 6,
            options: [
              {
                key: "1",
                selected: true,
                showname: getLabel(33564, "查看")
              },
              {
                key: "2",
                selected: false,
                showname: getLabel(119, "共享")
              }
            ],
            viewAttr: 2
          }
      ],
      "5": [
          {
            colSpan: 2,
            conditionType: "INPUT_INTERVAL",
            domkey: ["seclevel", "seclevel2"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(683, "安全级别"),
            labelcol: 6,
            value: [0, ],
            viewAttr: 3,
            rules:'required'
          },
          {
            colSpan: 2,
            conditionType: "SELECT",
            domkey: ["opttype"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(385, "权限"),
            labelcol: 6,
            options: [
              {
                key: "1",
                selected: true,
                showname: getLabel(33564, "查看")
              },
              {
                key: "2",
                selected: false,
                showname: getLabel(119, "共享")
              }
            ],
            viewAttr: 2
          }
      ],
      "4": [
          {
            browserConditionParam: {
              completeParams: {},
              conditionDataParams: {},
              dataParams: {},
              destDataParams: {},
              hasAddBtn: false,
              hasAdvanceSerach: true,
              idSeparator: ",",
              isAutoComplete: 1,
              isDetail: 0,
              isMultCheckbox: false,
              isSingle: false,
              pageSize: 10,
              quickSearchName: "",
              type: "65",
              viewAttr: 3,
              rules:'required',
              title: getLabel(106, "对象")
            },
            colSpan: 2,
            conditionType: "BROWSER",
            domkey: ["relatedid"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(106, "对象"),
            labelcol: 6,
            viewAttr: 3,
            rules:'required',
            title: getLabel(106, "对象")
          },
          {
            colSpan: 2,
            conditionType: "SELECT",
            domkey: ["rolelevel"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(139, "级别"),
            labelcol: 6,
            options: [
              {
                key: "0",
                selected: true,
                showname: getLabel(124, "部门")
              },
              {
                key: "1",
                selected: false,
                showname: getLabel(141, "分部")
              },
              {
                key: "2",
                selected: false,
                showname: getLabel(140, "总部")
              }
            ],
            viewAttr: 2
          },
          {
            colSpan: 2,
            conditionType: "INPUT_INTERVAL",
            domkey: ["seclevel", "seclevel2"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(683, "安全级别"),
            labelcol: 6,
            value: [0, ],
            viewAttr: 3,
            rules:'required'
          },
          {
            colSpan: 2,
            conditionType: "SELECT",
            domkey: ["opttype"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(385, "权限"),
            labelcol: 6,
            options: [
              {
                key: "1",
                selected: true,
                showname: getLabel(33564, "查看")
              },
              {
                key: "2",
                selected: false,
                showname: getLabel(119, "共享")
              }
            ],
            viewAttr: 2
          }
      ],
      "6": [
          {
            browserConditionParam: {
              completeParams: {},
              //conditionDataParams: {},
              dataParams: {},
              //destDataParams: {},
              hasAddBtn: false,
              hasAdvanceSerach: true,
              idSeparator: ",",
              isAutoComplete: 1,
              isDetail: 0,
              isMultCheckbox: false,
              isSingle: false,
              linkUrl: "/spa/hrm/engine.html#/hrmengine/posts?id=",
              pageSize: 10,
              quickSearchName: "",
              type: "278",
              viewAttr: 3,
              rules:'required',
              title: getLabel(106, "对象")
            },
            browserType: "278",
            colSpan: 2,
            conditionType: "BROWSER",
            domkey: ["relatedid"],
            fieldcol: 18,
            //isQuickSearch: false,
            label: getLabel(106, "对象"),
            labelcol: 6,
            viewAttr: 3,
            rules:'required',
            title: getLabel(106, "对象")
          },
          {
            colSpan: 2,
            conditionType: "SELECT_LINKAGE",
            domkey: ["joblevel"],
            fieldcol: 18,
            formItemType: "SELECT_LINKAGE",
            isQuickSearch: false,
            label: getLabel(28169, "岗位级别"),
            labelcol: 6,
            options: [
              {
                disabled: false,
                key: "2",
                selected: true,
                showname: getLabel(140, "总部"),
                visible: true
              },
              {
                disabled: false,
                key: "1",
                selected: false,
                showname: getLabel(19437, "指定分部"),
                visible: true
              },
              {
                disabled: false,
                key: "0",
                selected: false,
                showname: getLabel(19438, "指定部门"),
                visible: true
              }
            ],
            selectLinkageDatas: {
              "1": {
                browserConditionParam: {
                  completeParams: {},
                  //conditionDataParams: {},
                  dataParams: {},
                  //destDataParams: {},
                  hasAddBtn: false,
                  hasAdvanceSerach: true,
                  //idSeparator: ",",
                  isAutoComplete: 1,
                  isDetail: 0,
                  isMultCheckbox: false,
                  isSingle: false,
                  pageSize: 10,
                  //quickSearchName: "",
                  linkUrl: "/spa/hrm/engine.h tml#/hrmengine/organization?showTree=false&type=department&id=",
                  type: "194",
                  viewAttr: 3,
                  rules:'required',
                  title: getLabel(106, "对象")
                },
                browserType: "194",
                colSpan: 2,
                conditionType: "BROWSER",
                domkey: ["jobleveltextsubcompany"],
                fieldcol: 18,
                //isQuickSearch: false,
                label: "多部门",
                labelcol: 6,
                viewAttr: 3,
                rules:'required',
                title: getLabel(106, "对象")
              },
              "0": {
                browserConditionParam: {
                  completeParams: {},
                  //conditionDataParams: {},
                  dataParams: {},
                  //destDataParams: {},
                  hasAddBtn: false,
                  hasAdvanceSerach: true,
                  //idSeparator: ",",
                  isAutoComplete: 1,
                  isDetail: 0,
                  isMultCheckbox: false,
                  isSingle: false,
                  pageSize: 10,
                  quickSearchName: "",
                  linkUrl: "/spa/hrm/engine.html#/hrmengine/organization?showTree=false&type=subcompany&id=",
                  type: "57",
                  viewAttr: 3,
                  rules:'required',
                  title: getLabel(106, "对象")
                },
                browserType: "57",
                colSpan: 2,
                conditionType: "BROWSER",
                domkey: ["jobleveltextdepartment"],
                fieldcol: 18,
                //isQuickSearch: false,
                label: "多分部",
                labelcol: 6,
                viewAttr: 3,
                rules:'required',
                title: getLabel(106, "对象")
              }
            },
            viewAttr: 3,
            rules:'required'
          },
          {
            colSpan: 2,
            conditionType: "SELECT",
            domkey: ["opttype"],
            fieldcol: 18,
            isQuickSearch: false,
            label: getLabel(385, "权限"),
            labelcol: 6,
            options: [
              {
                key: "1",
                selected: true,
                showname: getLabel(33564, "查看")
              },
              {
                key: "2",
                selected: false,
                showname: getLabel(119, "共享")
              }
            ],
            viewAttr: 2
          }
      ]
    }
  ]
};
export default {
  Data
};
